package com.meituan.sdk.model.dcpd.queueOrder.orderIndexSync;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 同步等位信息
* This file was automatically generated.
*/
@ApiMeta(
    path = "/dcpd/queue/order/index/sync",
    businessId = 49,
    apiVersion = "10015",
    apiName = "order_index_sync",
    needAuth = true
)
public class OrderIndexSyncRequest implements MeituanRequest<Boolean> {
    /**
    * <p data-diff-id="ct-diff-id-473b8cbe-6431-49ab-83fb-74cfd4f6c695">分订单等位详情</p>
    */
    @SerializedName("orderWaitList")
    private List<OrderDTO> orderWaitList;
    /**
    * <p data-diff-id="ct-diff-id-d4120727-427f-4bb2-9986-ce95f872bacf">桌位等位详情</p>
    */
    @NotEmpty(message = "tableTypeWaitList不能为空")
    @SerializedName("tableTypeWaitList")
    private List<TableTypeDTO> tableTypeWaitList;
    /**
    * <p data-diff-id="ct-diff-id-844cabe7-7440-4001-874e-cab674c09f30">操作时间，单位毫秒</p>
    */
    @NotNull(message = "operateTime不能为空")
    @SerializedName("operateTime")
    private Long operateTime;

    public List<OrderDTO> getOrderWaitList() {
        return orderWaitList;
    }
    public void setOrderWaitList(List<OrderDTO> orderWaitList) {
        this.orderWaitList = orderWaitList;
    }
    public List<TableTypeDTO> getTableTypeWaitList() {
        return tableTypeWaitList;
    }
    public void setTableTypeWaitList(List<TableTypeDTO> tableTypeWaitList) {
        this.tableTypeWaitList = tableTypeWaitList;
    }
    public Long getOperateTime() {
        return operateTime;
    }
    public void setOperateTime(Long operateTime) {
        this.operateTime = operateTime;
    }


    @Override
    public MeituanResponse<Boolean> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<Boolean>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "OrderIndexSyncRequest{" + "orderWaitList=" + orderWaitList + "," + "tableTypeWaitList=" + tableTypeWaitList + "," + "operateTime=" + operateTime + "}";
    }
}
